<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-xs btn-danger"><i class="icon-lock">屏蔽</i></a>
		<a class="btn btn-xs btn-waring"><i class="icon-unlock">解除屏蔽</i></a>
	</div>
</div>
<table cellpadding="1" cellspacing="1" class="table table-bordered">
	<thead>
		<tr class="ui-widget-header">
			<th>离职人员</th>
			<th>离职原因</th>
			<th>预计离职时间</th>
			<th>审核状态</th>
			<th>备注</th>
			<th style="width:50px;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as resignation>
	<tr class="ui-widget-content">
		<td>${(resignation.cn)!''}</td>
		<td>${(resignation.reason)!''}</td>
		<td>${(resignation.ft?string("yyyy-MM-dd"))!''}</td>
		<td>
			<#if (resignation.auditStatusList??  && resignation.auditStatusList?size gt 0 )>
				<#list resignation.auditStatusList as item>
					<#if item.au??>
						${(item.auName)!''} 
						【<span><#if item.status?? && item.status == 1><font style="color:green;">通过</font><#elseif item.status?? && item.status == 2><font style="color:red;">未通过(${(item.remark)!''})</font>】<#break/><#else>未审核</#if></span>】>>>
						<#if resignation.auditStatusList?size == (item.pc) && item.status == 1 >
							【<font style="color:orange;">全部通过</font>】
			 			</#if>
					<#else>
						【<font style="color:orange;">未审核</font>】
						<#break/>
					</#if>
				</#list>
			<#else>
				【<font style="color:red;">没有配置流程</font>】
			</#if>
		</td>
		<td>${(resignation.remark)!''}</td>
		<td>
			<div class="btn-group">
				<#if !resignation.deleted>
				<a class="btn btn-xs btn-danger" href="javascript:;" onclick="javascript: shield_resignation('${resignation.code}', '${resignation.title}');" title="屏蔽"><i class="icon-lock"></i></a>
				<#else>
				<a class="btn btn-xs btn-waring" href="javascript:;" onclick="javascript: unshield_resignation('${resignation.code}', '${resignation.title}');" title="解除屏蔽"><i class="icon-unlock"></i></a>
				</#if>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryResignation_resignation'/>